package com.work.work1;

/**
 * 除法
 */
 class Div implements ICalculator{
    public int calculate(int n,int m){
        if (m == 0){
            throw new ArithmeticException("除数不能为0");
        }
        return n/m;
    }
}
